package com.hsjk.szwj.module.smedia.api.mediaManager.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 列出符合条件的公共素材库媒资基础信息 Request DTO
 */
@Data
public class PublicMediaBasicInfosReqDTO {
    @JsonProperty("MediaTagId")
    private String mediaTagId;

    @JsonProperty("IncludeFileBasicInfo")
    private Boolean includeFileBasicInfo;

    @JsonProperty("NextToken")
    private String nextToken;

    @JsonProperty("MaxResults")
    private Integer maxResults;

    @JsonProperty("PageNo")
    @NotNull(message = "页码不能为空")
    @Min(value = 1, message = "页码最小值为 1")
    private Integer pageNo;

    @JsonProperty("PageSize")
    @NotNull(message = "每页条数不能为空")
    @Min(value = 10, message = "每页条数最小值为 10")
    @Max(value = 100, message = "每页条数最大值为 100")
    private Integer pageSize;
}
